package pt.mleiria.sAction.web.controller;



import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import pt.mleiria.sAction.vo.UtilizadorVO;

public class NotAuthorizedController implements Controller{
	
	public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
		 
		String userName = ((UtilizadorVO)request.getSession().getAttribute("utilizador")).getUser();
		
		
		return new ModelAndView("notAuthorized", "userName", userName);
	}
}
